@isTest
private class DataUtilTest {
    static testMethod void testMethod1() {
        DataUtil.getStringValue('ddd');
        DataUtil.getDecimalValue('1234');
        DataUtil.dataHandler('111','DOUBLE');
        DataUtil.dataHandler('111','INTEGER');
        DataUtil.dataHandler('2019-01-01','DATE');
        DataUtil.dataHandler('2019-01-01 00:00:00','Datetime');
        DataUtil.dataHandler('00:00:00','Time');
        DataUtil.dataHandler('00:00:00','String');
        
        Map<String,Set<String>>fieldsMap = new Map<String,Set<String>>();
        fieldsMap.put('Product__c', new Set<String>{'Name','ProductStructure__c'});
        DataUtil.SObjectBean sb = new DataUtil.SObjectBean();
        sb.stype  = DataUtil.getSObjectType('Product__c');
        sb.title = 'ss';
        sb.objname = 'Product__c';
        sb.condition = ' limit 1 ';
        sb.type = 'base';
        Map<String,DataUtil.SObjectBean> stypeMap = new Map<String,DataUtil.SObjectBean> ();
		stypeMap.put('Product__c', sb);
         Map<String,List<DataUtil.FieldBean>> res = DataUtil.getFieldsBean( fieldsMap,  stypeMap);

        Map<String,String> fm = new Map<String,String>();
        fm.put('Name', 'Name');
        fm.put('ProductStructure__c', 'ProductStructure__c');
        DataUtil.getDetailBean(fm, sb.stype);

        DataUtil.getBaseInfo(res, stypeMap);
        Product__c p = new Product__c(Name='sss');
        Map<String,SObject>	 pm = new Map<String,SObject>();
        pm.put('Product__c', p);
        DataUtil.setFieldsValue(res, pm);

        DataUtil.getBaseObjectMap(stypeMap);
        DataUtil.getDetailObjectMap(stypeMap);
    }
}